<?xml version="1.0" encoding= "UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/templates/common.xhtml">
	<ui:define name="content">

		<p:panel header="Events">
			<p:dataScroller value="#{eventBean.eventList}" var="event">

				<h:link value="#{event.eventTitle}"
					outcome="/event/info">

					<f:param name="id" value="#{event.eventId}" />

				</h:link>

				<p:separator style="width:100%;height:1px" />

			</p:dataScroller>
			<pre></pre>
			
			<p:commandButton value="Back" action="/home" style="margin-left:20px" />

		</p:panel>



	</ui:define>

</ui:composition>


</html>

